package cn.aws360.boot.data.api.pojo.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author junnan
 */
@Data
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页")
    private Integer pageNum;

    @ApiModelProperty(value = "页长度")
    private Integer pageSize;

    @ApiModelProperty(value = "总页数")
    private Integer totalPage;

    @ApiModelProperty(value = "总行数")
    private Integer totalRows;

    @ApiModelProperty(value = "结果集")
    private List<T> rows;

}